package megrez.common.jpa;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 数据传输对象, 包括：审计信息，主键版本信息
 *  
 * @author Lucky Yang
 * @since 0.0.1
 */
@Setter
@Getter
@ToString
public abstract class AbstractIdAuditingDto extends AbstractAuditingDto{
    @ToString.Include
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private Integer version;
}
